package com.dld.android.net;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public abstract class Connector implements Runnable {
	
	private static ThreadPoolExecutor  mExecutor;
	static{
		BlockingQueue<Runnable> workQueue = new  LinkedBlockingQueue<Runnable>();
		mExecutor = new ThreadPoolExecutor(4, 10, 1000, TimeUnit.MILLISECONDS, workQueue);
	}
    public void start() {
        mExecutor.execute(this);
    }
}